﻿package  {
	
	public class Bishop extends Piece
	{

		public var pieceName:String = "bishop";
		
		public function Bishop(pieceColor:String, currentRow:int, currentColumn:int, firstMove:Boolean=false) 
		{
			this.firstMove = firstMove;
			super(pieceColor, currentRow, currentColumn);
		}
		
		public function moves(board:Array, enPassantPawn:Object):Array
		{
			positions = new Array();
			currentBoard = board;
			var steps:int = 7;
			
			diagonalDown(steps);
			diagonalUp(steps);
			
			return positions;
		}

	}
	
}
